package cn.cs.fallback;

import cn.cs.client.AgentInvoiceClient;
import cn.cs.pojo.AgentInvoice;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class AgentInvoiceFallBack implements AgentInvoiceClient {


    @Override
    public AgentInvoice getAgentInvoiceById(String id) throws Exception {
        return null;
    }

    @Override
    public AgentInvoice getAgentInvoiceByOrderNum(String orderNum) throws Exception {
        return null;
    }

    @Override
    public List<AgentInvoice> getAgentInvoiceListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getAgentInvoiceCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer insertAgentInvoice(AgentInvoice agentInvoice) throws Exception {
        return null;
    }

    @Override
    public Integer updateAgentInvoice(AgentInvoice agentInvoice) throws Exception {
        return null;
    }

    @Override
    public Integer deleteAgentInvoiceById(String id) throws Exception {
        return null;
    }
}
